<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.item{
				width: 500px;
				height: 350px;
				position: relative;
				/* overflow: hidden; */
			}
			.item img{
				width: 500px;
				height: 350px;
			}
			.pic{
				background-color: rgba(0,0,0,0.5);
				position: absolute;
				width: 500px;
				top: 81%;
				color: white;
				transition: 0.3s;
			}
			.item:hover .pic{
				top: 0;
				padding: 30% 0;
			}
		</style>
	</head>
	<body>
		<div class="item">
			<img src="img/dog.jpg">
			<div class="pic">
				<h3>名称</h3>
			</div>
		</div>
	</body>
</html>
